/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package domein;

import java.util.List;

/**
 *
 * @author vuokko
 */
public class Serie {
    
    private String title;
    private List<Episode> episodes;
    private Day airDay;
    
    public Serie(String title, List<Episode> episodes, Day airDay) {
        this.title = title;
        this.episodes = episodes;
        this.airDay = airDay;
    }
    
    public String getTitle() {
        return title;
    }
    
    public List<Episode> getEpisodes() {
        return episodes;
    }
    
    public Episode getEpisode(int index) {
        return episodes.get(index);
    }
    
    public Day getAirDay() {
        return airDay;
    }
    
    @Override
    public String toString() {
        String output = title;
        output += "\n" + airDay.toString();
        for (Episode e: episodes) {
            output+= "\n" + e.toString();
        }
        return output;
    }
    
}
